<!DOCTYPE html>
<html>
    <header>
        <meta charset="UTF-8">
        <title>Contas a Pagar</title>
        <link href="resources/css/padrao.css" rel="stylesheet"/>
        <link href="resources/css/bootstrap-theme.min.css" rel="stylesheet"/>
        <link href="resources/css/bootstrap.min.css" rel="stylesheet"/>
        <script src="resources/js/jquery-1.10.2.min.js" type="text/javascript" ></script>
        <script src="resources/js/bootstrap.min.js" type="text/javascript" ></script>
        <script src="resources/js/jquery.maskMoney.js" type="text/javascript" ></script>
        <script src="resources/js/jquery.mask.min.js" type="text/javascript" ></script>
    </header>

    <body>
        <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href = "/caixa"><span class="glyphicon glyphicon-home"></span> Inicio</a></li>
                </ul>
                <?php
                if (!isset($_SESSION['usuario'])) {
                    ?>
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="/caixa/logar"><span class="glyphicon glyphicon-user"></span> Login</a></li>
                        <li><a href="/caixa/usuario"><span class="glyphicon glyphicon-file"></span> Cadastrar-se</a></li>
                    </ul>
                    <?php
                } else {
                    ?>
                    <ul class="nav navbar-nav">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle"  data-toggle="dropdown" ><span class="glyphicon glyphicon-user"></span> Beneficiario<b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href = "/caixa/beneficiario"><span class="glyphicon glyphicon-plus-sign"></span> Cadastro de Beneficiario</a></li>
                                <li><a href = "/caixa/beneficiario_lista"><span class="glyphicon glyphicon-search"></span> Listagem de Beneficiario</a></li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle"  data-toggle="dropdown"><span class="glyphicon glyphicon-usd"></span> Contas<b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href = "/caixa/conta"><span class="glyphicon glyphicon-plus-sign"></span> Cadastro de Contas</a></li>
                                <li><a href = "/caixa/conta_lista"> <span class="glyphicon glyphicon-credit-card"></span> Baixa de Contas</a></li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle"  data-toggle="dropdown"><span class="glyphicon glyphicon-list-alt"></span> Relatórios<b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href = "/caixa/relatorio_periodo"><span class="glyphicon glyphicon-book"></span> Contas a pagar por período</a></li>
                                <li><a href = "/caixa/relatorio_vencidos"><span class="glyphicon glyphicon-search"></span> Listagem de Contas vencidas</a></li>
                                <li><a href = "/caixa/balanco"><span class="glyphicon glyphicon-list"></span> Balanço de Despesas</a></li>
                            </ul>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">

                        <li ><a><span class="glyphicon glyphicon-user"></span> <?php echo $_SESSION['usuario'] ?></a></li>
                        <li ><a href="/caixa/logout"><span class="glyphicon glyphicon-off"></span> Sair</a></li>
                    </ul>
                    <?php
                }
                ?>
            </div>
        </nav>
        <div style="margin: 10px">
            <div class="page-header">
                <h1>SYSCONTA</h1>
            </div>
            <div class="panel panel-primary">
                <div class="panel-heading"><span class="panel-title">Sistema de Contas a Pagar</span></div>
                <div style="min-height: 350px" class="panel-body">
                    <?php $this->content(); ?>
                </div>
                <div class="panel-footer">
                    <h6><small>Desenvolvido pela melhor equipe do mundo todo daqui do Ceará epecificamente Fortaleza.</small></h6>


                    <div class="panel-title" style="font-size: 12px;">
                        <span>Desenvolvido por: </span>
                        <span class="glyphicon glyphicon-fire" style="font-weight: bold;">José Gilmário&nbsp;</span>
                        <span class="glyphicon glyphicon-glass" style="font-weight: bold;">Antonio Allan&nbsp;</span>
                        <span class="glyphicon glyphicon-registration-mark" style="font-weight: bold;">Erialdo Rocha&nbsp;</span>
                        <span class="glyphicon glyphicon-user" style="font-weight: bold;">Esley&nbsp;</span>
                        <span class="glyphicon glyphicon-asterisk" style="font-weight: bold;">Jurandir</span>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>